const baseUrl9008 = "http://172.27.2.30:9008";

const role = {
  // querySysRoots: `GET /api/v1/sys/roles/system`,
  // queryRoleList: `GET /api/v1/sys/roles/{rootId}`,
  // 角色分组菜单
  queryRoleList: `POST ${baseUrl9008}/ISystemFacade/querySysRoleAndUserCount`,
  querySysRootsCode: `GET /api/v1/sys/roots/{code}`,
  // create: `POST /api/v1/sys/roles/{rootId}`,
  // 添加角色分组的角色权限
  create: `POST ${baseUrl9008}/ISystemFacade/querySysMenuByUserId`,
  // 添加角色分组的确定按钮
  addSure: `POST ${baseUrl9008}/ISystemFacade/addSysRole`,
  // 删除分组角色
  // delete: `DELETE /api/v1/sys/roles/{id}`,
  delete: `POST ${baseUrl9008}/ISystemFacade/deleteSysRoleByRoleId`,
  // update: `PUT /api/v1/sys/roles/{id}`,
  // 角色分组编辑
  update: `POST ${baseUrl9008}/ISystemFacade/updateSysRoleByRoleId`,
  validateRoleCode: `GET /api/v1/sys/roles/check/used`,
  queryUsers: `GET /api/v1/sys/users/simple`,
  addUsers: `POST /api/v1/sys/roles/{roleId}/users`,
  // queryRoleTree: `GET /api/v1/sys/menus/role/{roleId}/all/tree`,
  // 添加角色所有权限
  queryRoleTree: `POST ${baseUrl9008}/ISystemFacade/querySysMenuByUserId`,
  // 编辑角色权限
  editRoleTree: `POST ${baseUrl9008}/ISystemFacade/querySysMenuCheckedByUserId`,
  // 提交角色权限
  updateRoleTree: `POST ${baseUrl9008}/ISystemFacade/updateSysRoleAndMenu`,
  queryOrgTree: "GET /api/v1/sys/roles/{roleId}/org/tree",
  queryGroupList: "GET /api/v1/sys/group/{roleId}/list",
  updateRoleOrg: `POST /api/v1/sys/roles/{roleId}/org`,
  updateRoleGroup: `POST /api/v1/sys/roles/{roleId}/group`,
  // 修改成员分组确认
  // updateRoleUsers: `POST /api/v1/sys/roles/{roleId}/users`,
  updateRoleUsers: `POST ${baseUrl9008}/ISystemFacade/updateSysRoleAndUser`,
  // queryMembersByRole: `GET /api/v1/sys/roles/{roleId}/all/members`,
  // 根据角色分组找角色成员
  queryMembersByRole: `POST ${baseUrl9008}/ISystemFacade/querySysUser`,
  // 删除用户成员
  // deleteMembers: `DELETE /api/v1/sys/roles/{roleId}/members`,
  deleteMembers: `POST ${baseUrl9008}/ISystemFacade/deleteSysRoleByUserId`,
};

export default role;
